package com.fanqiechaodan.springframework.context;

/**
 * @author fanqiechaodan
 * @Classname BeanDefinition
 * @Description BeanDefinition描述了一个bean实例
 * @Date 2023/2/22 20:36
 */
public class BeanDefinition {

    /**
     * 标记单例标识符
     */
    public static final String SCOPE_SINGLETON = "singleton";

    /**
     * 标记多例标识符
     */
    public static final String SCOPE_PROTOTYPE = "prototype";

    /**
     * 单例or多例
     */
    private String scope;

    /**
     * 是否懒加载
     */
    private boolean isLazy;

    /**
     * beanClass
     */
    private Class type;

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isLazy() {
        return isLazy;
    }

    public void setLazy(boolean lazy) {
        isLazy = lazy;
    }

    public Class getType() {
        return type;
    }

    public void setType(Class type) {
        this.type = type;
    }
}
